package query

import "ssdevice/common/dto"

type SysBatchTaskQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Id        string   `form:"id" json:"id" search:"type:exact;column:id;table:sys_batch_task"`
	Name      string   `form:"name"  search:"type:contains;column:name;table:sys_batch_task"`
	Status    int      `form:"status"  search:"type:exact;column:status;table:sys_batch_task"`
	TaskType  string   `form:"taskType"  search:"type:exact;column:task_type;table:sys_batch_task"`
	ProductId string   `form:"productId"  search:"type:exact;column:product_id;table:sys_batch_task"`
	PackageId string   `form:"packageId"  search:"type:exact;column:package_id;table:sys_batch_task"`
	IdIn      []string `form:"idIn" search:"type:in;column:id;table:sys_batch_task"`
}

func (m *SysBatchTaskQuery) GetNeedSearch() interface{} {
	return *m
}
